<h2>Edit <%= resource_name.to_s.humanize %></h2>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
  <%= devise_error_messages! %>

  <%= render :partial =>'form',:locals => {:f =>f} %>

  <div><%= f.submit "Update" %></div>
<% end %>


<%= link_to "Back", :back %>

